var e = require("../../uni_modules/u-store/js_sdk/Storage.js"), s = {
    namespaced: !0,
    state: function() {
        return {
            specChecked: !1,
            specInfo: e.Storage.get("specInfo") || {
                category: "specs",
                category_id: 0,
                specs_id: 0,
                specs_title: "选择绑定车型后方可提交",
                specs_titlepic: "/static/img/circle.jpg",
                brand_id: 0,
                brand_name: "",
                brand_titlepic: "/static/img/circle.jpg",
                firms_id: 0,
                firms_name: "",
                series_id: 0,
                series_name: "请选择绑定车型！",
                year: ""
            }
        };
    },
    mutations: {
        updateUser: function(e, s) {
            e.id = s.id, e.username = s.username;
        },
        upChecked: function(e, s) {
            e.specChecked = s;
        },
        upInfo: function(s, i) {
            s.specInfo = i, e.Storage.set("specInfo", i);
        },
        upDefault: function(s) {
            s.specInfo = {
                category: "specs",
                category_id: 0,
                specs_id: 0,
                specs_title: "选择绑定车型后方可提交",
                specs_titlepic: "/static/img/circle.jpg",
                brand_id: 0,
                brand_name: "",
                brand_titlepic: "/static/img/circle.jpg",
                firms_id: 0,
                firms_name: "",
                series_id: 0,
                series_name: "请选择绑定车型！",
                year: ""
            }, e.Storage.set("specInfo", this.specInfo);
        }
    }
};

exports.specCar = s;